* use dispatch parameter to include attestation.
* restrict attestation to release flavor
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
- workflow_dispatch: ~
+ workflow_dispatch:
+ inputs:
+ attestation:
+ description: 'Generate attestation for binary artifacts'
+ required: false
+ default: false
+ type: boolean
jobs:
macos:
./tools/ci_script_osx.sh . ${{ matrix.QT_VERSION }} ${{ matrix.GENERATOR }}
- name: Generate artifact attestation
- if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
+ if: ${{ inputs.attestation && matrix.RELEASE }}
uses: actions/attest-build-provenance@v1
with:
subject-path: 'gui/GPSBabel-*.dmg'
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
- workflow_dispatch: ~
+ workflow_dispatch:
+ inputs:
+ attestation:
+ description: 'Generate attestation for binary artifacts'
+ required: false
+ default: false
+ type: boolean
jobs:
ubuntu:
./testo -p /snap/bin/gpsbabel
- name: Generate artifact attestation
- if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' )
+ if: ${{ inputs.attestation }}
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ steps.build-snap.outputs.snap }}
branches: [ master ]
schedule:
- cron: '27 4 * * 2'
- workflow_dispatch: ~
+ workflow_dispatch:
+ inputs:
+ attestation:
+ description: 'Generate attestation for binary artifacts'
+ required: false
+ default: false
+ type: boolean
jobs:
PNAME=./bld/gui/package/gpsbabel.exe GBTEMP=./gbtemp ./test_encoding_utf8 2>&1
- name: Generate artifact attestation
- if: ( github.event_name == 'push' ) && ( github.ref == 'refs/heads/master' ) && matrix.RELEASE
+ if: ${{ inputs.attestation && matrix.RELEASE }}
uses: actions/attest-build-provenance@v1
with:
subject-path: 'bld/gui/GPSBabel-*-Setup.exe'
with:
name: Windows_Installer ${{ join(matrix.*) }}
path: |
- ./bld/gui/GPSBabel-*-Setup.exe
- ./bld/gui/GPSBabel-*-Manifest.txt
+ bld/gui/GPSBabel-*-Setup.exe
+ bld/gui/GPSBabel-*-Manifest.txt
retention-days: 7